package pojo;

public class Student {
    private Integer id; //id
    private String sno; //学号
    private String name; //姓名
    private Integer gender; //性别，1表示男，2表示女
    private Integer age; //年龄
    private String id_number; //身份证号
    private String address; //家庭住址
    private String phone; //手机号
    private String depart; //院系
    private String major; //专业
    private String now_class; //所在班级

    public Student() {
    }

    public Student(Integer id, String sno, String name, Integer gender, Integer age, String id_number, String address, String phone, String depart, String major, String now_class) {
        this.id = id;
        this.sno = sno;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.id_number = id_number;
        this.address = address;
        this.phone = phone;
        this.depart = depart;
        this.major = major;
        this.now_class = now_class;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getId_number() {
        return id_number;
    }

    public void setId_number(String id_number) {
        this.id_number = id_number;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getNow_class() {
        return now_class;
    }

    public void setNow_class(String now_class) {
        this.now_class = now_class;
    }

    @Override
    public String toString() {
        return "Student{" +
                "学号='" + sno + '\'' +
                ", 姓名='" + name + '\'' +
                ", 性别=" + (gender == 1 ? "男" : "女") +
                ", 年龄=" + age +
                ", 身份证号='" + id_number + '\'' +
                ", 家庭住址='" + address + '\'' +
                ", 手机号='" + phone + '\'' +
                ", 院系='" + depart + '\'' +
                ", 专业='" + major + '\'' +
                ", 所在班级='" + now_class + '\'' +
                '}';
    }
}
